package com.example.demo01.Entity.mobileEntity;

import org.apache.catalina.User;
import org.springframework.stereotype.Component;

/**
 * 对应userinfo1表
 */
@Component
public class UserInfo  {
    //attributes
    private String idNum;
    private String name;
    private String nation;
    private String address;
    private Integer age;
    private String sex;
    private String curAddress;
    private String occupation;
    private String nurseLevel;
    private String phoneNum;
    private Float lon;
    private Float lat;
    //setter
    public void setIdNum(String idNum) {
        this.idNum = idNum;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setCurAddress(String curAddress) {
        this.curAddress = curAddress;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public void setNurseLevel(String nurseLevel) {
        this.nurseLevel = nurseLevel;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public void setLon(Float lon) {
        this.lon = lon;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }
    //getter
    public String getIdNum() {
        return idNum;
    }

    public String getName() {
        return name;
    }

    public String getNation() {
        return nation;
    }

    public String getAddress() {
        return address;
    }

    public Integer getAge() {
        return age;
    }

    public String getSex() {
        return sex;
    }

    public String getCurAddress() {
        return curAddress;
    }

    public String getOccupation() {
        return occupation;
    }

    public String getNurseLevel() {
        return nurseLevel;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public Float getLon() {
        return lon;
    }

    public Float getLat() {
        return lat;
    }

    //constructors
    public UserInfo(){super();}

    public UserInfo(String idNum, String name, String nation, String address, Integer age, String sex, String curAddress, String occupation, String nurseLevel, String phoneNum) {
        this.idNum = idNum;
        this.name = name;
        this.nation = nation;
        this.address = address;
        this.age = age;
        this.sex = sex;
        this.curAddress = curAddress;
        this.occupation = occupation;
        this.nurseLevel = nurseLevel;
        this.phoneNum = phoneNum;
    }

    public UserInfo(String idNum, String name, String nation, String address, Integer age, String sex, String curAddress, String occupation, String nurseLevel, String phoneNum, Float lon, Float lat) {
        this.idNum = idNum;
        this.name = name;
        this.nation = nation;
        this.address = address;
        this.age = age;
        this.sex = sex;
        this.curAddress = curAddress;
        this.occupation = occupation;
        this.nurseLevel = nurseLevel;
        this.phoneNum = phoneNum;
        this.lon = lon;
        this.lat = lat;
    }

    //toString
    @Override
    public String toString() {
        return "UserInfo{" +
                "idNum='" + idNum + '\'' +
                ", name='" + name + '\'' +
                ", nation='" + nation + '\'' +
                ", address='" + address + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", curAddress='" + curAddress + '\'' +
                ", occupation='" + occupation + '\'' +
                ", nurseLevel='" + nurseLevel + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", lon=" + lon +
                ", lat=" + lat +
                '}';
    }
}
